package com.sinocare.project.common.domin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 检测者表
 */
@Data
@TableName("scc_patient")
public class SccPatient implements Serializable {
    private static final long serialVersionUID = 6892480182303710819L;
    private Integer patientId;                     //检测者id
    private String patientCode;                //检测者编号
    private Integer userId;                        //用户id
    private String customerCode;               //客户编号
    private String name;                        //姓名
    private String phone;                       //联系电话
    private Integer sex;                            //性别
    private Integer age;                            //年龄
    private String idCard;                     //身份证号
    private Double weight;                      //体重
    private Double height;                      //身高
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Gmt+8")
    private Date createTime;                   //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Gmt+8")
    private Date updateTime;                   //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Gmt+8")
    private Date lastTestTime;                //最后检测时间
    private Integer countOfTest;              //检测次数
    private Integer status;                         //状态


}
